package com.bjsxt.controller;

import com.bjsxt.pojo.MarriedPerson;
import com.bjsxt.pojo.PageA;
import com.bjsxt.service.MarriedPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/marriedPerson")
public class MarriedPersonController  {

    @Autowired
    private MarriedPersonService marriedPersonService;

    @RequestMapping("/findMoreMarriedPerson")
    public PageA<MarriedPerson>   findMoreMarriedPerson(Integer page,Integer rows,MarriedPerson marriedPerson){

        return   marriedPersonService.findMore(page, rows, marriedPerson);

    }

}
